//
//  myorderModel.m
//  uniform
//
//  Created by Apple on 15/8/28.
//  Copyright (c) 2015年 giuseppe. All rights reserved.
//

#import "myorderModel.h"

@implementation myorderModel



static myorderModel *_order;

+(myorderModel *)order
{
    @synchronized ([myorderModel class])
    {
        if (_order == nil)
        {
            _order = [[myorderModel alloc] init];
        }
    }
    return _order;
}

+ (instancetype) initWithDicAttributes:(NSDictionary *)dic {
    
    myorderModel *tmp = [[myorderModel alloc] init];
    
    if (dic) {
        
        tmp.orderNumber = [dic objectForKey:@"orderNumber"];
        tmp.addressId = [dic objectForKey:@"addressId"];
        tmp.orderType = [dic objectForKey:@"orderType"];
        tmp.suitid = [dic objectForKey:@"suitid"];
        tmp.orderdetailid = [dic objectForKey:@"orderdetailid"];
        tmp.name = [dic objectForKey:@"name"];
        tmp.brief = [dic objectForKey:@"brief"];
        tmp.price = [dic objectForKey:@"price"];
        tmp.amount = [dic objectForKey:@"amount"];
        tmp.imgurl = [dic objectForKey:@"imgurl"];
        tmp.afterSalesType = [dic objectForKey:@"afterSalesType"];
        tmp.sizeContent = [dic objectForKey:@"sizeContent"];
        
    }

    return tmp;
    
}


@end
